﻿@model BastInfos.Models.Publication.PublicationListModel

@{
	ViewBag.Title = "Listes des Publications" + (Model.Year.HasValue ? "de l'année " + Model.Year.Value : String.Empty);
}

<div id="content">
	<h1><span>Listes des Publications @if (Model.Year != null) { <em>de l'année @Model.Year</em> }</span></h1>
	<br /><br />

	@foreach (var publication in Model.Publications) {
		<div class="news_bloc">
			<div>
				<div class="f_left" style="width:325px;"><h3>@Html.Raw(publication.Title)</h3></div>
				<div class="f_right">@String.Format("{0:g}", publication.CreationDate)</div>
				<br class="clear" />
			</div>
			<hr style="height:1px;width:100%;border:0px;background:#CECECE;margin:3px 0px;" />
			<div class="p_justify" style="padding:5px;">@Html.Raw(publication.Summary)</div>
			<hr style="height:1px;width:100%;border:0px;background:#CECECE;margin:3px 0px;" />
			<div>
				<a href="/Content/book/@(Html.Raw(publication.File)).pdf" target="_blank">Télécharger (<em>format PDF</em>)</a>
			</div>
		</div>
		<br class="clear" />
	}
	<br/>
	<a href="#haut">Retour en haut de la page</a>
</div>